package cn.zhz.service;

import cn.zhz.dao.workingMapping;
import cn.zhz.entity.working;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service("workingservice")
public class workingserviceimpl implements workingservice{

    @Autowired
    workingMapping workingMapping;


    @Override
    @Transactional(propagation = Propagation.SUPPORTS)
    public List<working> getworklist(int title) {
        return workingMapping.getworklist(title);
    }

    @Override
    public int Save(working working) {
        return workingMapping.Save(working);
    }
}
